package com.hmall.client;

import com.hmall.pojo.Order;
import com.hmall.pojo.OrderDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("orderservice")
public interface OrderClient {
    @GetMapping("/order/{id}")
    public Order queryOrderById(@PathVariable("id") Long orderId);

    @GetMapping("/order_detail/{id}")
    public OrderDetail queryOrderDetail(@PathVariable("id") Long id);

    @PutMapping("/order/update")
    public void updateOrder(@RequestBody Order order);
}
